package com.forekonw.demo5;

import java.util.Scanner;

public class Test001 {
    public Animal animal(){
        Animal ani = new Animal();
        ani.name = "tanxin";
        ani.type = "monkey";
        ani.age = 24;
        ani.zool = "shenyang";
        return ani;
    }



    public Animal animal( Animal animal){

        return animal;
    }


    public static void main(String[] args) {
        Test001 a = new Test001();
        Animal b = new Animal();
        b = a.animal();
        System.out.println(b.name+b.zool+b.type+b.age);


        Scanner input = new Scanner(System.in);
        String name = input.next();
        String type = input.next();
        String zool = input.next();
        int age = input.nextInt();
        Animal animal = new Animal();
        animal.age = age;
        animal.type=type;
        animal.zool = zool;
        animal.name = name;
        Animal cc = new Animal();
        cc = a.animal(animal);
        System.out.println(cc.name+cc.zool+cc.type+cc.age);

    }
}
